package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.ManagerialStaffDao;
import com.site.wisdom_construction.entity.personnelModule.ManagerialStaff;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/4
 * @Description
 */
@Service
public class ManagerialStaffService implements ManagerialStaffDao {
    @Autowired
    private ManagerialStaffDao managerialStaffDao;

    @Override
    public int insertManagerialStaff(Map map) {
        return managerialStaffDao.insertManagerialStaff(map);
    }

    @Override
    public int deleteManagerialStaff(Map map) {
        return managerialStaffDao.deleteManagerialStaff(map);
    }

    @Override
    public int updateManagerialStaff(Map map) {
        return managerialStaffDao.updateManagerialStaff(map);
    }

    @Override
    public int updateManagerialStaffByStatusJ(Map map) {
        return managerialStaffDao.updateManagerialStaffByStatusJ(map);
    }

    @Override
    public int updateManagerialStaffByStatusT(Map map) {
        return managerialStaffDao.updateManagerialStaffByStatusT(map);
    }

    @Override
    public List<ManagerialStaff> findManagerialStaffByPage(Map map) {
        return managerialStaffDao.findManagerialStaffByPage(map);
    }

    @Override
    public long Total(Map map) {
        return managerialStaffDao.Total(map);
    }

    @Override
    public ManagerialStaff findManagerialStaffById(Map map) {
        return managerialStaffDao.findManagerialStaffById(map);
    }

    @Override
    public List<ManagerialStaff> findManagerialStaffByPhone(Map map) {
        return managerialStaffDao.findManagerialStaffByPhone(map);
    }

    @Override
    public ManagerialStaff findManagerialStaffByManagerialPhone(Map map) {
        return managerialStaffDao.findManagerialStaffByManagerialPhone(map);
    }

    @Override
    public Integer countAllByProjectId(Map map) {
        return managerialStaffDao.countAllByProjectId(map);
    }

    @Override
    public List<ManagerialStaff> findManagerialStaffByProjectId(Map map) {
        return managerialStaffDao.findManagerialStaffByProjectId(map);
    }

    @Override
    public ManagerialStaff findManagerialStaffByPersonId(Map map) {
        return managerialStaffDao.findManagerialStaffByPersonId(map);
    }

    @Override
    public ManagerialStaff findManagerialStaffByManagerialName(Map map) {
        return managerialStaffDao.findManagerialStaffByManagerialName(map);
    }
}
